package com.vogue.supplymall.cross.domain.dao.impl;

import com.vogue.supplymall.common.domain.dto.admin.OrganManagementInfo;
import com.vogue.supplymall.common.domain.dto.admin.ShopSearchInfo;
import com.vogue.supplymall.cross.domain.dao.AdminManagementDao;
import com.vogue.supplymall.cross.domain.mapper.CrossMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * The type Open shop dao.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-05-15
 */
@Repository("openShopDao")
public class AdminManagementDaoImpl extends BaseDaoImpl<List, Long> implements AdminManagementDao {
    @Resource
    private CrossMapper crossMapper;

    @Override
    public List<Map<String, Object>> findNotOpenShop(ShopSearchInfo shopSearchInfo) {
        return crossMapper.findNotOpenShop(shopSearchInfo);
    }

    @Override
    public Long findNotOpenShopCount(ShopSearchInfo shopSearchInfo) {
        return crossMapper.findNotOpenShopCount(shopSearchInfo);
    }

    @Override
    public List<Map<String, Object>> findOpenedOrgan(OrganManagementInfo info) {
        return crossMapper.findOpenedOrgan(info);
    }

    @Override
    public Long findOpenedOrganCount(OrganManagementInfo info) {
        return crossMapper.findOpenedOrganCount(info);
    }
}
